-- GENERATED SPELL FOR [Watcher Moonleaf] --


function spell0_24273(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(23380,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24273', 12000, 1)
end

function spell1_24273(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24273', 2000, 1)
end

function Sorts_24273(pUnit, Event)
local choix_sorts_24273 = math.random(0, 1)
if choix_sorts_24273 == 0 then
pUnit:RegisterEvent('spell0_24273', 1, 1)
end
if choix_sorts_24273 == 1 then
pUnit:RegisterEvent('spell1_24273', 1, 1)
end
end

function mob24273_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24273', math.random(1500, 3000), 1)
end

function mob24273_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24273_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24273_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24273, 1, 'mob24273_Action')
RegisterUnitEvent(24273, 2, 'mob24273_Leave')
RegisterUnitEvent(24273, 3, 'mob24273_Kill')
RegisterUnitEvent(24273, 4, 'mob24273_Die')
